package com.base.controller.mips;

import com.base.api.bms.IMipsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/mips", produces = "application/json;charset=UTF-8")
public class mipsController {
    @Autowired
    private IMipsService mipsService;

    @PostMapping(value = "/findMipsPatiInfo")
    public String findMipsPatiInfo(String patientId) {
        return mipsService.findPatientInfoByPid(patientId);
    }

    @PostMapping(value = "/mipsUploadBillDetail")
    public String mipsUploadBillDetail(String mipsPatiVisitInfoId) {
        return mipsService.singleUploadBill(mipsPatiVisitInfoId);
    }

    @PostMapping(value = "/mipsCancelUploadBillDetail")
    public String mipsCancelUploadBillDetail(String mipsPatiVisitInfoId) {
        return mipsService.cancelUploadBill(mipsPatiVisitInfoId);
    }

    @PostMapping(value = "/mipsDischarge")
    public String mipsDischarge(String mipsPatiVisitInfoId) {
        return mipsService.discharged(mipsPatiVisitInfoId);
    }

    @PostMapping(value = "/mipsCancelDischarge")
    public String mipsCancelDischarge(String mipsPatiVisitInfoId) {
        return mipsService.cancelDisCharged(mipsPatiVisitInfoId);
    }
}
